//
//  ByNetModel.m
//  recordworktool_ios
//
//  Created by mc on 2017/11/30.
//  Copyright © 2017年 ZhangZhanbin. All rights reserved.
//

#import "ByNetModel.h"

@implementation ByNetModel

- (void)setAttributes:(NSDictionary *)jsonDic{
    [super setAttributes:jsonDic];
    
    self.ID = jsonDic[@"id"];
    NSString *income = jsonDic[@"income"];
    self.income = [NSString stringWithFormat:@"%.2f", income.floatValue / 100];
    
    NSString *settlement = jsonDic[@"settlement"];
    self.settlement = [NSString stringWithFormat:@"%.2f", settlement.floatValue / 100];
    
    NSString *pre_borrow = jsonDic[@"pre_borrow"];
    self.pre_borrow = [NSString stringWithFormat:@"%.2f", pre_borrow.floatValue / 100];
    
    NSString *debt = jsonDic[@"debt"];
    self.debt = [NSString stringWithFormat:@"%.2f", debt.floatValue / 100];
    
    NSString *money = jsonDic[@"money"];
    self.money = [NSString stringWithFormat:@"%.2f",money.floatValue / 100];
    
    NSString *expenditure = jsonDic[@"expenditure"];
    self.expenditure = [NSString stringWithFormat:@"%.2f", expenditure.floatValue / 100];
}

@end
